#include "testAction.h"

using namespace sde;

TestAction::TestAction(std::string _type, std::string _name, Object* _object) :
    Action(_type,_name,_object) {
    object->subscribeRpc("testRpc",boost::bind(&TestAction::testRpc,this,_1));
}

Var TestAction::testRpc(VarMap args) {
    log("testRpc");
    static int i = 0;
    return i++;
}

void TestAction::run() {
    log("run");
}

void TestAction::stop() {
    log("stop");
}

